#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

void  paixu(int* pt, int z)
{
	int i = 0, m = 0,temp=0;
	for (i = 1; i < z; i+=2)
		for (m = i; m < z; m+=2)
			
			{
				if (pt[i] > pt[m])
				{
					temp = pt[i];
					pt[i] = pt[m];
					pt[m] = temp;
				}
			}
}


int main()
{
	int a[10] = { 1,2,3,14,44,4,4,4,19,10 };
	int i = 0,z=0;
	paixu(a,10);
	for (i = 0; i < 10; i++)
		printf("%d ", a[i]);
	return 0;
}
